﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.EntityFrameworkCore;
using Nuanyang.Asp.Net.Core.Extension.Entities;

namespace Nuanyang.Asp.Net.Core.Extension.DataBase
{
    public class FunctionContext : DbContext
    {
        public FunctionContext(DbContextOptions options)
            : base(options)
        {

        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.ApplyConfigurationsFromAssembly(this.GetType().Assembly);
        }

        public DbSet<FunctionEntity> Function { get; set; }

        public DbSet<GroupEntity> Group { get; set; }

        public DbSet<GroupFunctionEntity> GroupFunction { get; set; }
    }
}
